package model.command;
import controller.KeyListeners.KeyListenerSet;
/**
 *
 * @author joseph
 */
public abstract class Harvest extends Command implements NumberCommand{
    private Harvestable harvester;
    private int numWorkers;
    public Harvest(Harvestable harvester){
        super();
        setHarvester(harvester);
        recieveNumber(1);
    }
    @Override
    public void attachToListener(){
        getListeners().attachToNumberListener((NumberCommand)clone());
    }
    public Harvestable getHarvester(){
        return harvester;
    }
    public int getNumWorkers(){
        return numWorkers;
    }
    public void recieveNumber(int numWorkers){
        this.numWorkers = numWorkers;
    }
    private void setHarvester(Harvestable harvester){
        this.harvester = harvester;
    }

}
